package com.bdv.md.controller.xmlattribute;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name="TlkmTsel")
@XmlAccessorType(XmlAccessType.FIELD)
public class TlkmTsel{
	@XmlElement
	private String type;
	@XmlElement(name="channel")
	private String channel="USSD";

	@XmlElement
	private Parameter param;

	
	public TlkmTsel(){}
	
	public TlkmTsel(String type, Parameter param) {
		setType(type);
		setParam(param);
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Parameter getParam() {
		return param;
	}

	public void setParam(Parameter param) {
		this.param = param;
	}

	public String getChannel() {
		return channel;
	}

	public void setChannel(String channel) {
		this.channel = channel;
	}

	@Override
	public String toString() {
		return "TlkmTsel [" + (type != null ? "type=" + type + ", " : "")
				+ (param != null ? "param=" + param + ", " : "")
				+ (channel != null ? "channel=" + channel : "") + "]";
	}

}
